home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / miwarn.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  2KB  |  103 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    warningId ;
  9. extern int    warningMesId[3] ;
  10. extern int    warningBtnId ;
  11. extern int    filewarningFunc() ;
  12.  
  13. #define ALIGN    4
  14. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  15.  
  16. /*    MMI_init 用データ    */
  17.  
  18. /*    ヘッダ    */
  19.  
  20. MMIINIT    initDataMIWARN = { "MmiInit",   5, 0 } ;
  21.  
  22. /* warningId */
  23.  
  24. static MMIPACKET d001 = {    &warningId,
  25.                             NULL,
  26.                             &MJ_ALERTL40,
  27.                             OFFSET(ALERTL40),
  28.                             MS_NONE
  29.                         } ;
  30. static ALERTL40    d001d = {    MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
  31.                              204, 184, 451, 292, 0, 7, 0,
  32.                             MS_SRECTL40 | MS_FRAMEL40,
  33.                             NULL, 102,1004,
  34.                                0,   0,   0,   0
  35.                         } ;
  36.  
  37. /* warningMesId[0] */
  38.  
  39. static MMIPACKET d002 = {    &warningMesId[0],
  40.                             &warningId,
  41.                             &MJ_MSGL40,
  42.                             OFFSET(MSGL40),
  43.                             MS_NONE
  44.                         } ;
  45. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  46.                              211, 192, 428, 214, 8, 7, 8,
  47.                             MS_NONEL40,
  48.                             "ファイルのオ-プンに失敗しました",
  49.                                1,  12,  12,
  50.                             MS_BOLDL40,
  51.                                0,   0
  52.                         } ;
  53.  
  54. /* warningMesId[2] */
  55.  
  56. static MMIPACKET d003 = {    &warningMesId[2],
  57.                             &warningId,
  58.                             &MJ_MSGL40,
  59.                             OFFSET(MSGL40),
  60.                             MS_NONE
  61.                         } ;
  62. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  63.                              210, 211, 442, 233, 8, 7, 8,
  64.                             MS_NONEL40,
  65.                             "ファイル名を確かめ再実行してください",
  66.                                1,  12,  12,
  67.                             MS_BOLDL40,
  68.                                0,   0
  69.                         } ;
  70.  
  71. /* warningBtnId */
  72.  
  73. static MMIPACKET d004 = {    &warningBtnId,
  74.                             &warningId,
  75.                             &MJ_DBUTTONL40,
  76.                             OFFSET(DBUTTONL40),
  77.                             MS_NONE
  78.                         } ;
  79. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  80.                              280, 248, 359, 273,12, 7, 0,
  81.                             MS_PANELL40 | MS_FRAMEL40,
  82.                             filewarningFunc,
  83.                             0x8012
  84.                         } ;
  85.  
  86. /* warningMesId[1] */
  87.  
  88. static MMIPACKET d005 = {    &warningMesId[1],
  89.                             &warningId,
  90.                             &MJ_MSGL40,
  91.                             OFFSET(MSGL40),
  92.                             MS_NONE
  93.                         } ;
  94. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  95.                              283, 250, 355, 273, 8, 7, 8,
  96.                             MS_NONEL40,
  97.                             "確 認",
  98.                                1,  12,  12,
  99.                             MS_BOLDL40,
  100.                                0,   0
  101.                         } ;
  102.  
  103.